import React from "react";
import { BrowserRouter } from "react-router-dom";
import BottomBar from "./common/bottomBar";
import { renderRoutes } from "react-router-config";
import { routers } from "./router";
import { Provider } from "react-redux";
import store from './store'
const Index = () => {
  return (
    <Provider store={store}>
      <BrowserRouter>
        {/* 中间的内容展示区 */}
        <main>{renderRoutes(routers)}</main>
        {/* 底部导航 */}
        <BottomBar />
      </BrowserRouter>
    </Provider>
  );
};

export default Index;
